import axios from "@/axios";

// 获取分类分页数据
export function getCategoryPageList(data) {
    return axios.post("/admin/category/list", data)
}
/**
 * 新增分类
 * @param {} data 
 * @returns 
 */
export function addCategory(data) {
    return axios.post("/admin/category/add", data)
}
/**
 * 删除分类
 * @param {} data 
 * @returns 
 */
export function deleteCategory(data) {
    return axios.post("/admin/category/delete", data)
}
// 获取分类 select 数据
export function getCategorySelectList() {
    return axios.post("/admin/category/select/list")
}


